package com.opennews.openplatform.familyexpenseapi.dto.authentication

import com.fasterxml.jackson.annotation.JsonIgnoreProperties
import jakarta.validation.constraints.NotBlank
import jakarta.validation.constraints.Size

@JsonIgnoreProperties(ignoreUnknown = true)
class RegisterDto : PasswordDto() {
    @field:NotBlank(message = "username can't be blank")
    @field:Size(min = 3, max = 50, message = "username must be between 3 and 50 characters")
    lateinit var username: String

    @field:NotBlank(message = "fullName can't be blank")
    @field:Size(max = 50, message = "fullName must be less than 50 characters")
    lateinit var fullName: String
}